package hxy.cupb.entity;

import lombok.Data;
import org.springframework.security.core.GrantedAuthority;

/**
 * @author eric
 * @description:
 * @date 11/26/19 10:14 AM
 */
@Data
public class RoleEntity implements GrantedAuthority {
    // 主键
    private int id;
    private String name;
    private String nameZh;

    @Override
    public String getAuthority() {
        return name;
    }
}
